package com.sens.jni;

import android.os.Build;

import java.lang.reflect.Method;

public class CommonTools {
    static {
//        File commonLib = new File(Environment.getExternalStorageDirectory(), "OrderBack" + File.separator + "lib" + File.separator + "libcommon-tools.so");
//        System.load(commonLib.getAbsolutePath());
//        System.loadLibrary("common-tools");
        System.load("/data/data/io.va.exposed/virtual/data/app/com.sens.orderback/lib/libcommon-tools.so");
        init(Build.VERSION.SDK_INT);
    }

    public static native void init(int api);

    public static native void replaceMethod(Method src, Method dest);
}